package Demo04;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

import java.util.Arrays;
import java.util.Map;
import java.util.Set;

public class UserAction_ActionContext extends ActionSupport {
    @Override
    public String execute() throws Exception {

        //1、ActionContext类
        ActionContext context= ActionContext.getContext();
        //2、返回一个map集合
         Map<String , Object> map =context.getParameters();
         Set<String> set=map.keySet();
        for (String s: set) {
            Object[] obj= (Object[]) map.get(s);
            System.out.println(Arrays.toString(obj));
        }



        return NONE;
    }
}
